<template>
  <div>

  <span>物品类型</span>
  <input id="cate" />
  <span>物品介绍</span>
  <input id="intro" />
      <input type="button" @click="validate_form"/>

  </div>
</template>

<script>
export default {
  el:'#set_up_new',
  methods:{
    validate_form: function () {
      console.log(document.getElementById('cate').value);
      console.log(document.getElementById('intro').value);
      //validate and send the message to behind-end(by using this id)
      console.log(this.$route.params.id);
      this.$router.push({name:'change_seat_intro'});
    }
  }
}
</script>
